package www.cskaoyan.com.bean;

import java.util.HashMap;

/**
 * 登录账号密码验证
 */
public class Account {
    int userId;
    String userAccount;
    String userPassWord;
    public Account(HashMap parameters) {
        if (parameters == null){
            return;
        }else {
            try {
                if (parameters.containsKey("userAccount")){
                    this.userAccount = (String) parameters.get("userAccount");
                }
                if (parameters.containsKey("userPassWord")){
                    this.userPassWord = (String) parameters.get("userPassWord");
                }
            }catch (Exception e){
                System.out.println("前端传递参数转化异常: 参考类型异常");
            }
        }
    }

    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
    public String getUserAccount() {
        return userAccount;
    }
    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }
    public String getUserPassWord() {
        return userPassWord;
    }
    public void setUserPassWord(String userPassWord) {
        this.userPassWord = userPassWord;
    }
}
